package com.lzhsite.technology.designPattern.adapter.Address;

public class USAddress implements AddressValidator
{
    public boolean isValidAddress(String address, String zip, String state)
    {
        if (address.trim().length() < 10)
        {
            return false;
        }
        if (zip.trim().length() < 5 || zip.trim().length() > 10)
        {
            return false;
        }
        if (state.trim().length() != 2)
        {
            return false;
        }
        return true;
    }
}
